﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Metodesa.Master" AutoEventWireup="true" CodeBehind="DetailsCompra.aspx.cs" Inherits="Metodesa.Views.Home.DetailsCompra" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">




<table style="width:100%;">
        <tr>
            <td style="font-weight: bold">
                Codigo</td>
            <td>
                <asp:Label ID="labelCodigo" runat="server" Text="Label"></asp:Label>
            </td>
            <td style="font-weight: bold">
                Proveedor</td>
            <td >
                <asp:Label ID="labelProveedor" runat="server" Text="Label"></asp:Label>
            </td>
        </tr>
        <tr>
            <td style="font-weight: bold">
                Empleado</td>
            <td>
                <asp:Label ID="labelEmpleado" runat="server" Text="Label"></asp:Label>
            </td>
            <td style="font-weight: bold">
                Monto</td>
                <td >
                <asp:Label style="font-weight: bold"  ID="labelMonto" runat="server" Text="Label"></asp:Label>
            </td>
        </tr>
    </table>

                                    <asp:Button ID="ButtonCerrar" runat="server" onclick="ButtonCerrar_Click" 
                                        Text="Cerrar" />

    <br />
    <br />
    <asp:Label ID="label" runat="server" Text=""></asp:Label>
    <br />
    <br />
    
      <asp:Panel ID="ListDetalles" runat="server" Visible="true">
  
    
    </asp:Panel>

<asp:Panel ID="PanelAdd" runat="server" Visible="true">
  
    
    

    <table style="width: 100%;">
        <tr>
            <td>
                &nbsp; Producto</td>
            <td>
                &nbsp; Precio Unidad</td>
            <td>
                &nbsp; Cantidad</td>
            <td>
                Precio Total</td>
            <td rowspan="2">
                <asp:Button ID="addButton" runat="server" Text="Agregar" 
                    onclick="addButton_Click" />
            </td>
        </tr>
        <tr>
            <td>
                <asp:DropDownList ID="DropDownListProductos" runat="server" AutoPostBack="True" onselectedindexchanged="DropDownListProductos_SelectedIndexChanged" 
                    >
                </asp:DropDownList>
                </td>
            <td>
                
               <asp:Label ID="labelPrecio" runat="server"></asp:Label>
                                            </td>
            <td>
                <asp:TextBox ID="textCantidad" runat="server" AutoPostBack="True" 
                    ontextchanged="textCantidad_TextChanged" Width="50px"></asp:TextBox>
                </td>
            <td>
                <asp:Label ID="labelPrecioTotal" runat="server"></asp:Label></td>
        </tr>
        </table>

</asp:Panel>


<asp:HiddenField ID="Id" runat="server" Visible="False" />
</asp:Content>
